# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations
import django.utils.timezone
import blog.models


class Migration(migrations.Migration):

    dependencies = [
        ('authentication', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='Posts',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('seed', models.CharField(default=blog.models.pk_generator, max_length=40, verbose_name='seed')),
                ('title', models.CharField(max_length=200, verbose_name='title')),
                ('excerpt', models.TextField(verbose_name='excerpt')),
                ('content', models.TextField(verbose_name='content')),
                ('password', models.CharField(max_length=20, verbose_name='password', blank=True)),
                ('create_datetime', models.DateTimeField(default=django.utils.timezone.now, verbose_name='create time', auto_now_add=True)),
                ('update_datetime', models.DateTimeField(default=django.utils.timezone.now, auto_now=True, null=True, verbose_name='update time')),
                ('author', models.ForeignKey(to='authentication.User', to_field=b'username')),
            ],
            options={
            },
            bases=(models.Model,),
        ),
    ]
